Skip to content

ACK ID + x402 example#36

Closed
edspencer wants to merge 3 commits intomainfrom
ed/ack-id-x402-example
Closed

ACK ID + x402 example#36
edspencer wants to merge 3 commits intomainfrom
ed/ack-id-x402-example

Conversation

@edspencer
Copy link
Contributor

This PR adds an end-to-end example demonstrating how a client can verify a server's identity using ACK ID before purchasing access to a protected route with x402.

The example includes:

  • A Hono server that issues a signed ControllerCredential from an /identify endpoint and protects a /buy route with x402-hono.
  • A client script that verifies the credential and then uses x402-fetch to complete the purchase.
  • A pnpm run setup command to simplify local key generation.

To Test:

  1. cd examples/x402
  2. pnpm install
  3. pnpm run setup
  4. Create a .env file with a wallet PRIVATE_KEY for the buyer wallet.
  5. Run pnpm run dev and pnpm run buy in separate terminals.

@edspencer edspencer force-pushed the ed/ack-id-x402-example branch from aeae313 to 8fad402 Compare September 18, 2025 23:14
@venables venables closed this Oct 14, 2025
@venables venables deleted the ed/ack-id-x402-example branch February 14, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants